package com.ecoolex.hotel.saas.ws;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.hotel.saas.entity.Activity;
import com.ecoolex.hotel.saas.entity.ActivityShowStore;
import com.ecoolex.hotel.saas.entity.ActivityStore;

import java.util.List;

public interface ActivityService {

    Activity get(Integer activityId);

    Pagination<Activity> query(String name, Page page);

    Pagination<Activity> queryByShowStoreId(Integer storeId, Page page);

    Activity add(Activity record, String createUser) throws BizException;

    Activity edit(Activity record, String updateUser) throws BizException;

    void delete(Activity record, String updateUser) throws BizException;

    Integer activityStoreNumber(Integer activityId);

    ActivityStore getActivityStore(Integer id);

    Pagination<ActivityStore> queryActivityStore(String storeName,Integer activityId, Page page);

    List<ActivityStore> queryActivityStore(Integer activityId, Integer size);

    void addActivityStore(Integer activityId, List<Integer> storeIdList, String createUser) throws BizException;

    ActivityStore editActivityStore(ActivityStore record, String updateUser) throws BizException;

    void deleteActivityStore(ActivityStore record, String updateUser) throws BizException;

    Boolean isRelationActivity(Integer activityId, Integer storeId);

    ActivityShowStore getActivityShowStore(Integer id);

    Pagination<ActivityShowStore> queryActivityShowStore(String storeName,Integer activityId,Page page);

    void addActivityShowStore(Integer activityId, List<Integer> storeIdList, String createUser) throws BizException;

    void delActivityShowStore(ActivityShowStore record, String updateUser) throws BizException;

    Boolean isRelationActivityShow(Integer activityId, Integer storeId);
}
